﻿using System.Data;

namespace SQLMap.Core.Strategy
{

    /// <summary>
    /// <![CDATA[SQLMAP解析器接口]]>
    /// </summary>
    public interface ICommandParser
    {
        /// <summary>
        /// <![CDATA[生成IDbCommand成员对象]]>
        /// </summary>
        /// <param name="command"><![CDATA[SQLMAP command对象]]></param>
        /// <param name="connection"><![CDATA[数据库连接]]></param>
        /// <param name="parameters"><![CDATA[参数]]></param>
        /// <returns></returns>
        IDbCommand Build(Command command, IDbConnection connection, object parameters = null);
    }
}
